package com.moonshineproject.plugin.settings.validators
{
	import flash.filesystem.File;

	public class FileValidator implements IValidator
	{
		public function FileValidator()
		{
		}

		public function validate(content:Object, rules:Object=null):Boolean
		{
			var file:File = content as File;
			if (content is String)
			{
				file = new File(String(content));
			}
			return (file && file.exists);

		}
	}
}